package cn.sc.summer.adapter.job;

import com.aizuda.snailjob.client.job.core.annotation.JobExecutor;
import com.aizuda.snailjob.client.job.core.dto.JobArgs;
import com.aizuda.snailjob.client.model.ExecuteResult;
import com.aizuda.snailjob.common.log.SnailJobLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author a-xin
 * @description
 * @belongsProject SummerCloud
 * @belongsPackage cn.sc.summer.adapter.job
 * @date 2024-11-25  11:43
 */
@Slf4j
@Component
public class SnailJobExecute {

    @JobExecutor(name = "testJob")
    public ExecuteResult jobExecute(JobArgs jobArgs) {
        SnailJobLog.REMOTE.info("哈哈，测试成功了");
        return ExecuteResult.success();
    }

}
